﻿using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;

namespace EasyXaf.Blazor.ColorPickers;

public sealed class BlazorColorPickersModule : ModuleBase
{
    protected override void RegisterEditorDescriptors(EditorDescriptorsFactory editorDescriptorsFactory)
    {
        base.RegisterEditorDescriptors(editorDescriptorsFactory);
        editorDescriptorsFactory.RegisterPropertyEditorAlias("ColorPickerEditor", typeof(string), false);
        editorDescriptorsFactory.RegisterPropertyEditor("ColorPickerEditor", typeof(string), typeof(ColorPickerEditor), false);
    }
}